<!-- Copyright (c) Jack魏 2023 - 2023, All Rights Reserved. -->

<!-- 这里演示页面输出Hello Vue和Element Plus简单使用，访问连接：http://localhost:端口/src/demo/001/demo1.html -->
<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Demo1</title>

    <!-- 这里vue.js文件是从cdn拿到也可以放到本地加载 -->
    <script src="https://unpkg.com/vue@3/dist/vue.global.js"></script>
    <!-- ElementPlus 引入样式 -->
    <link rel="stylesheet" href="//unpkg.com/element-plus/dist/index.css" rel="external nofollow" target="_blank" />
    <!-- ElementPlus 引入组件库 -->
    <script src="//unpkg.com/element-plus" rel="external nofollow"></script>
</head>

<body>
    <div id="app">{{message}}</div>
    <div id="elementPlus"><el-button>{{ message }}</el-button></div>
</body>

</html>
<script>
    const App = {
        data() {
            return {
                message: 'Hello Vue'
            }
        }
    }
    Vue.createApp(App).mount('#app');

    const elementPlus = {
        data() {
            return {
                message: "Hello Element Plus",
            };
        },
    };
    const app = Vue.createApp(elementPlus);
    app.use(ElementPlus);
    app.mount("#elementPlus");
</script>